#include "stdafx.h"
#include "TimeManager.h"
#include "Log.h"
#include "Config.h"
#include "Login.h"



int main()
{
    //---------------------------------------------------------------------------------------
    CTimeManager::GetInstance()->Init();
    Log::GetInstance()->Init();

    Log::SaveLog( "./Log/Login.log", "\r\n(###) main..." ) ;
    CTimeManager::GetInstance()->SetTime( ) ;

    Log::SaveLog( "./Log/Login.log", "Login Starting... (%.10d)(%d)",
        CTimeManager::GetInstance()->Time2DWORD(),
        CTimeManager::GetInstance()->StartTime() ) ;
    srand(CTimeManager::GetInstance()->CurrentTime());

    //---------------------------------------------------------------------------------------
    CLogin g_Login;
    BOOL	bRet  =		g_Login.Init();
    Assert(bRet);

    bRet	=			g_Login.Loop();	
    Assert(bRet);

    bRet	=			g_Login.Exit();
    Assert(bRet);


    return 0;

}